import { get, post } from '@/axios/index.js'


//查询
export const productList = (data)=>get('/system/product/list',data)
//新增
export const productAdd = (data)=>post('/system/product/add',data)  
//删除
export const productDelete = (id)=>post('/system/product/deleteById/'+id)
//修改
export const productUpdate = (data)=>post('/system/product/update',data)
//查询详情
export const productDetails = (id)=>get('/system/product/details/'+id)
//修改状态
export const productStatusUpdate = (id, status) =>post(`/system/product/statusUpdate/${id}/${status}`);

export const productAddStock = (id, sum) =>post(`/system/product/addStock/${id}/${sum}`);
